/*package org.itboys.trade.web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.itboys.commons.CommonConstants;
import org.itboys.commons.utils.ajax.AjaxUtils;
import org.itboys.framework.query.JsonPageUtils;
import org.itboys.framework.spring.controller.BaseController;
import org.itboys.mongodb.utils.page.Page;
import org.itboys.trade.dto.OrderDto;
import org.itboys.trade.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

*//**
 * 订单
 * @author weisky
 *
 *//*
@RestController 
@RequestMapping("/order") 
public class OrderController extends BaseController{

	@Autowired
	private OrderService orderService;
	
	*//*************************************大后台对订单的操作*******************************************//*
	
	*//**
	 * 跳到页面 
	 * @param request
	 * @param response
	 * @return
	 *//*
	@RequestMapping("/toListVM")
	public ModelAndView toListVM(HttpServletRequest request, HttpServletResponse response) {
		return new ModelAndView("/order/list");
	}
	
	@RequestMapping("/list")
	public void list(HttpServletRequest request, HttpServletResponse response){
		Page<OrderDto> page = orderService.pageToDto(request);
		JsonPageUtils.renderJsonPage(page.getTotalPages(), page.getData(), response);
	} 
	
	*//**************************************商家后台对订单的操作******************************************//*
	*//**
	 * 跳到订单页面
	 * @param request
	 * @param response
	 * @return
	 *//*
	@RequestMapping("/seller/toOrderVM")
	public ModelAndView toOrderVM(Model model, HttpServletRequest request, HttpServletResponse response) {
		Page<OrderDto> page = orderService.pageToDto(request);
		model.addAttribute("data", page);
		return new ModelAndView("/seller/order");
	}
	
	*//**
	 * 设置订单的物流信息
	 * @param orderId
	 * @param status
	 * @param request
	 * @param response
	 *//*
	@RequestMapping("/setExpressInfo")
	public void setExpressInfo(Long orderId, String express, String expressNo,
			HttpServletRequest request, HttpServletResponse response){
		boolean result = orderService.setExpressInfo(orderId, express, expressNo);
		if(result){
			AjaxUtils.renderText(response, CommonConstants.SUCCESS);
		}else{
			AjaxUtils.renderText(response, CommonConstants.FAIL);
		}
	}
}
*/